import router from "@src/router";

Component({
  options: {
    addGlobalClass: true
  },
  properties: {
    imagesArr: {
      type: Array,
      value: []
    },
  },
  data: {
    indicatorDots: false,
    autoplay: true,
    interval: 3000,
    duration: 500,
    indicatorIndex: 1,
  },
  lifetimes: {
    attached: function () {
    },
    detached: function () {
    }
  },
  pageLifetimes: {
  },
  methods: {
    handleClick(e) {
      router.push({path: e.currentTarget.dataset.path})
    },
    swiperChange(e) {
      this.setData({
        'indicatorIndex': e.detail.current + 1
      })
    },
  }
})
